package com.vains.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 角色资源关联表
 * </p>
 *
 * @author vains
 * @since 2021-03-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class OauthRolePermission implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "role_permission_id", type = IdType.AUTO)
    private Integer rolePermissionId;

    /**
     * 资源id
     */
    private Integer permissionId;

    /**
     * 角色id
     */
    private Integer roleId;


}
